package com.example.NIO;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileUtil {
    static File newFile(String filename) throws IOException {
        File file = new File(filename);
        file.createNewFile();
        return file;
    }

    static boolean initFile(File file, String str) throws IOException {
        file.createNewFile();
        FileOutputStream outputStream = new FileOutputStream(file);
        outputStream.write(str.getBytes());
        outputStream.close();
        return true;
    }

    public static String pic = "";
}